/**
 * Created by Administrator on 2016/2/27.
 */

var touchdemo = app.controller('touchdemo', function($rootScope, $scope, $http,$state,$touch) {
    try {
        $scope.touch = null;
    }
    catch (e){
        console.log(e);
    }
    $scope.tou=function(){
        console.log('----------------------------------------');
console.log(angular.element("#toucharea"));
        $touch.bind(angular.element("toucharea"), {
            start: function(touch) {
                $scope.touch = touch;
            },

            cancel: function(touch) {
                $scope.touch = touch;
            },

            move: function(touch) {
                $scope.touch = touch;
            },

            end: function(touch) {
                $scope.touch = touch;
            }
        });
    }
    window.setTimeout($scope.tou,1000);
});